package com.tdkj.model.website;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * XnkyWebsiteOnline entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "website_website_online")
public class BeanWebsiteOnline extends BaseEntity{

	// Fields
	private BeanWebsiteParam websiteParam;
	private String username;
	private String qq;

	// Constructors

	/** default constructor */
	public BeanWebsiteOnline() {
	}
	/** default constructor */
	public BeanWebsiteOnline(long id) {
		this.setId(id);
	}

	/** minimal constructor */
	public BeanWebsiteOnline(long id,BeanWebsiteParam websiteParam) {
		this.setId(id);
		this.websiteParam = websiteParam;
	}

	/** full constructor */
	public BeanWebsiteOnline(long id,BeanWebsiteParam websiteParam,
			String username, String qq) {
		this.setId(id);
		this.websiteParam = websiteParam;
		this.username = username;
		this.qq = qq;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "paramid", nullable = false)
	public BeanWebsiteParam getWebsiteParam() {
		return this.websiteParam;
	}

	public void setWebsiteParam(BeanWebsiteParam websiteParam) {
		this.websiteParam = websiteParam;
	}

	@Column(name = "username", length = 40)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "qq", length = 40)
	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

}